
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import Directives from './command/index.js';
import { createPinia } from 'pinia'


// 初始化 Pinia
const pinia = createPinia()
const app = createApp(App)
// 挂载 Pinia
app.use(pinia)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(Directives)
.use(router)
.mount('#app')


